Skip to content

Conversation

@biship
Copy link

@biship biship commented Nov 1, 2025

When opening a bots inventory the addon would error if the client does not have the icon for the item.
eg, I use this module https://github.com/silviu20092/mod-flightmaster-whistle which uses a custom item.

Copilot AI review requested due to automatic review settings November 1, 2025 17:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors texture path handling to prevent nil reference errors and standardize texture path formatting across the codebase.

  • Introduces a centralized SafeTexturePath function that handles nil values and normalizes texture paths
  • Replaces inline texture path logic with calls to the new utility function
  • Adds fallback handling for uncached item icons in the UI

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
Core/MultiBotEngine.lua Introduces SafeTexturePath utility function and refactors all texture path handling to use it
UI/MultiBotItem.lua Adds fallback icon handling for uncached items

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Wishmaster117
Copy link
Owner

Nice modification, thank you for the suggestion. I would like to suggest a few modifications.

@Wishmaster117
Copy link
Owner

I fixed a few things and resolved the merge conflicts in your PR. I gave you credits, of course.
#79

Wishmaster117 added a commit that referenced this pull request Dec 23, 2025
…#79)

I took @biship 's excellent PR:
#72
I added a few modifications and resolved the merge conflicts.

All crédits to @biship
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants